package com.lsk.serviceDriverUser.remote;

import com.lsk.internalcommon.DTO.ResponseResult;
import com.lsk.internalcommon.request.ForecastPriceDTO;
import com.lsk.internalcommon.response.ForecastPriceResponse;
import com.lsk.internalcommon.response.TerminalResponse;
import com.lsk.internalcommon.response.TraceResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.POST,value = "/terminal/add")
    public ResponseResult<TerminalResponse> addTerminal(@RequestParam String name);

    @RequestMapping(method = RequestMethod.POST,value = "/trace/add")
    public ResponseResult<TraceResponse> addTrace(@RequestParam String tid);
}
